class Admin::PreferencesController < ApplicationController
  
  before_filter :admin_authorize
  
  layout "admin"
  
  def index
    edit
    render :action => :edit
  end
  
  def edit
      
  end
  
  def update
    @preferences.keys.each do |k|
      @preferences[k] = params[k]
      @preferences.save
    end
    redirect_to :action => "edit"
  end
  
end
